package com.itdaan.portal.business.mapper;

import java.util.List;
import java.util.Map;

import com.itdaan.portal.business.domain.User;

/**
 * @author www.itdaan.com
 */
public interface UserMapper extends BasicMapper<User> {
	
	User getByUserName(String username);
	
	/**
	 * 更新文章浏览量
	 * 
	 * @param #{ key:uid }    第三方平台的user id
	 * @param #{ key:source } 用户来源
	 */
	public User getByUidAndSource(Map<String, Object> params);
	
	public List<User> getNewestUsers(Map<String,Object> params);
}
